import axios from '../../utils/axios'

// 顶部数据
export const navTop = (params: {  }, method?: string) => {
    return axios({
        url: '/index/top',
        method: method || 'get',
        data: {
            ...params
        }
    })
}

// 底部数据
export const navBottom = (params: {  }, method?: string) => {
    return axios({
        url: '/index/bottom',
        method: method || 'get',
        data: {
            ...params
        }
    })
}

// 登录
export const Login = (params: {}, method?: string) => {
    return axios({
        url: '/auth/login',
        method: method || 'get',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data: params
    })
}

// 注册
export const register = (params: {}, method?: string) => {
    return axios({
        url: '/auth/register',
        method: method || 'get',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data: params
    })
}

export default {}